<?php
/**
 * Created by PhpStorm.
 * User: 曹旺
 * Date: 2018-05-10
 * Time: 17:40
 */
namespace app\index\model;
use think\Model;
use traits\model\SoftDelete;
class Project extends Model{
    /*//设置当前表默认日期时间显示格式
    protected $dateFormat = 'Y/m/d';
    //开启自动写入时间戳
    protected $autoWriteTimestamp = true;
    protected $createTime = 'created_time';*/
    use SoftDelete;
    protected $autoWriteTimestamp = 'datatime';
    protected  $deleteTime = 'delete_time';//必须
    protected $updateTime = false;//必须

    public function projectschedule(){
        return $this->hasMany('ProjectSchedule');
    }
}